package com.fz.service.merchant;

import com.fz.common.ResponseEntity;
import com.fz.dto.merchant.merUser.MerUserAdd;
import com.fz.dto.merchant.merUser.MerUserQuery;
import com.fz.dto.merchant.merUser.MerUserUpd;
import com.fz.entity.merchant.MerUser;
import com.fz.vo.merchant.merUser.MerUserVo;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author Administrator
 */
public interface MerUserService {
    MerUser findMerUserByLoginid(String loginid);

    Collection<GrantedAuthority> mapToRoleAuthoritiesMenu(String userId);


    ResponseEntity<MerUserVo> findMerUserList(Integer pageSize, Integer pageNum, MerUserQuery merUserQuery) throws Exception;


    ResponseEntity updateMerUser(MerUserUpd merUserUpd) throws Exception;


    ResponseEntity saveMerUser(MerUserAdd merUserAdd) throws Exception;


    ResponseEntity delMerUser(String ids) throws Exception;


    ResponseEntity<MerUserVo> selectMerUsersList(MerUserQuery merUserQuery) throws Exception;
}
